Fix order of pack-end widgets
authorMatthias Clasen <mclasen@redhat.com>
Tue, 7 Jan 2014 04:33:39 +0000 (23:33 -0500)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Tue, 7 Jan 2014 13:46:37 +0000 (08:46 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=721665

gtk/gtkactionbar.c

index 02d3cdf8383e36939824aa7e6efefdb2ea49e10d..527a04cbec23d43423450b4f0cf6c4bba9a7cd8d 100644 (file)
@@ -509,18 +509,9 @@ gtk_action_bar_size_allocate (GtkWidget     *widget,
       else
         x = allocation->x + allocation->width - end_width - css_borders.right;
 
-      if (packing == GTK_PACK_START)
-        {
-          l = priv->children;
-          i = 0;
-        }
-      else
-        {
-          l = g_list_last (priv->children);
-          i = nvis_children - 1;
-        }
+      i = 0;
 
-      for (; l != NULL; (packing == GTK_PACK_START) ? (l = l->next) : (l = l->prev))
+      for (l = priv->children; l != NULL; l = l->next)
         {
           child = l->data;
           if (!gtk_widget_get_visible (child->widget))
@@ -554,10 +545,7 @@ gtk_action_bar_size_allocate (GtkWidget     *widget,
           gtk_widget_size_allocate (child->widget, &child_allocation);
 
         next:
-          if (packing == GTK_PACK_START)
-            i++;
-          else
-            i--;
+          i++;
         }
     }